package com.example.dw.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 新闻实体类
 * @author system
 * @since 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("news")
public class News implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 新闻ID
     */
    @TableId(value = "newsid", type = IdType.AUTO)
    private Integer newsid;

    /**
     * 新闻标题
     */
    @TableField("newsName")
    private String newsName;

    /**
     * 新闻封面图片
     */
    @TableField("newsAvatar")
    private String newsAvatar;

    /**
     * 新闻发布人
     */
    @TableField("newsPeople")
    private String newsPeople;

    /**
     * 新闻内容
     */
    @TableField("newsContent")
    private String newsContent;

    /**
     * 新闻日期
     */
    @TableField("newsDate")
    private LocalDateTime newsDate;

    /**
     * 新闻链接
     */
    @TableField("newsUrl")
    private String newsUrl;

    /**
     * 关联活动ID
     */
    @TableField("activityid")
    private Integer activityid;

    /**
     * 创建时间
     */
    @TableField("createdAt")
    private LocalDateTime createdAt;
} 